<!DOCTYPE HTML>
<html>
<head>
    <meta charset="utf-8">
    <title>疯狂猜球-虚拟杯赛</title>
    <meta name="viewport" content="width=device-width,initial-scale=1, minimum-scale=1, maximum-scale=1, user-scalable=no" />
    <meta name="apple-mobile-web-app-capable" content="yes" />
    <meta name="full-screen" content="true" />
    <meta name="screen-orientation" content="portrait" />
    <meta name="x5-orientation" content="portrait">
    <meta name="renderer" content="webkit">
    <meta name="x5-fullscreen" content="true" />
    <meta name="360-fullscreen" content="true" />
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="renderer" content="webkit">
    <style>
        .hide{
            display: none !important;
        }
        body,
        p,
        h1,
        h2,
        h3,
        h4,
        h5,
        h6,
        ul,
        ol,
        li,
        dl,
        dt,
        dd,
        table,
        th,
        td,
        form,
        fieldset,
        legend,
        input,
        textarea,
        button,
        select {
            margin: 0;
            padding: 0;
        }
        li {
            list-style: none
        }
        html, body {
            -ms-touch-action: none;
            background: #2c253e;
            padding: 0;
            border: 0;
            margin: 0;
            height: 100%;
        }

        .msgBox .msg{
            position: absolute;
            z-index: 1;
            color:#605182 ;
            height: 0.6rem;
            padding: 0 0.26667rem;
            border-radius: 0.3rem;
            background: rgba(255, 255, 255, 0.8);
            line-height: 0.6rem;
            font-size: 0.32rem;
            display: none;
        }
        .msgBox .local01{
            left: 50%;
            transform: translateX(-50%);
            bottom:2.7rem;
        }
        .msgBox .local02{
            top:1.35rem;
            left:0.8rem;
        }
        .msgBox .local03{
            top:4rem;
            left: 0.8rem ;
        }
        .msgBox .local04{
            top:6.6rem;
            left: 0.8rem ;
        }
        .msgBox .local05{
            top:9.2rem;
            left: 0.8rem ;
        }
        .msgBox .local06{
            top:1.35rem;
            right: 0.6rem ;
        }
        .msgBox .local07{
            top:4rem;
            right: 0.6rem ;
        }
        .msgBox .local08{
            top:6.6rem;
            right: 0.6rem ;
        }
        .msgBox .local09{
            top:9.2rem;
            right: 0.6rem ;
        }
        /*全屏*/
        .fullMsg{
            position: relative;
            top: -1rem;
        }
    </style>

<script type="text/javascript">
    ! function(a, b) {
        function c() {
            var b = f.getBoundingClientRect().width;
            b / i > 540 && (b = 540 * i);
            var c = b / 10;
            f.style.fontSize = c + "px", k.rem = a.rem = c
        }
        var d, e = a.document,
            f = e.documentElement,
            g = e.querySelector('meta[name="viewport"]'),
            h = e.querySelector('meta[name="flexible"]'),
            i = 0,
            j = 0,
            k = b.flexible || (b.flexible = {});
        if (g) {
            console.warn("将根据已有的meta标签来设置缩放比例");
            var l = g.getAttribute("content").match(/initial\-scale=([\d\.]+)/);
            l && (j = parseFloat(l[1]), i = parseInt(1 / j))
        } else if (h) {
            var m = h.getAttribute("content");
            if (m) {
                var n = m.match(/initial\-dpr=([\d\.]+)/),
                    o = m.match(/maximum\-dpr=([\d\.]+)/);
                n && (i = parseFloat(n[1]), j = parseFloat((1 / i).toFixed(2))), o && (i = parseFloat(o[1]), j = parseFloat((1 / i).toFixed(2)))
            }
        }
        if (!i && !j) {
            var p = (a.navigator.appVersion.match(/android/gi), a.navigator.appVersion.match(/iphone/gi)),
                q = a.devicePixelRatio;
            i = p ? q >= 3 && (!i || i >= 3) ? 3 : q >= 2 && (!i || i >= 2) ? 2 : 1 : 1, j = 1 / i
        }
        if (f.setAttribute("data-dpr", i), !g)
            if (g = e.createElement("meta"), g.setAttribute("name", "viewport"), g.setAttribute("content", "initial-scale=" + j + ", maximum-scale=" + j + ", minimum-scale=" + j + ", user-scalable=no"), f.firstElementChild) f.firstElementChild.appendChild(g);
            else {
                var r = e.createElement("div");
                r.appendChild(g), e.write(r.innerHTML)
            }
        a.addEventListener("resize", function() {
            clearTimeout(d), d = setTimeout(c, 300)
        }, !1), a.addEventListener("pageshow", function(a) {
            a.persisted && (clearTimeout(d), d = setTimeout(c, 300))
        }, !1), "complete" === e.readyState ? e.body.style.fontSize = 12 * i + "px" : e.addEventListener("DOMContentLoaded", function() {
                e.body.style.fontSize = 12 * i + "px"
            }, !1), c(), k.dpr = a.dpr = i, k.refreshRem = c, k.rem2px = function(a) {
            var b = parseFloat(a) * this.rem;
            return "string" == typeof a && a.match(/rem$/) && (b += "px"), b
        }, k.px2rem = function(a) {
            var b = parseFloat(a) / this.rem;
            return "string" == typeof a && a.match(/px$/) && (b += "rem"), b
        }
    }(window, window.lib || (window.lib = {}));

</script>

<!--<script src="./src/utils/util_build.js"></script>  -->
<!--打包前-->
 <script src="./utils/util_build.js"></script> 
<!--打包后-->
</head>
<body style="position: relative" >
    <div id="content" style="margin: auto;width: 100%;height: 100%;" class="egret-player"
        data-entry-class="Main"
        data-orientation="portrait"
        data-scale-mode="fixedWidth"
        data-frame-rate="30"
        data-content-width="750"
        data-content-height="1136"
        data-show-paint-rect="false"
        data-multi-fingered="2"
        data-show-fps="false" data-show-log="false"
        data-show-fps-style="x:0,y:0,size:12,textColor:0xffffff,bgAlpha:0.9">
    </div>
    <!-- 我的消息 -->
    <div class="msgBox fullMsg" style="display: none">
        <p class="msg local01">我的消息1</p>
        <p class="msg local02">我的消息2</p>
        <p class="msg local03">我的消3</p>
        <p class="msg local04">我的消息4</p>
        <p class="msg local05">我的消息5</p>

        <p class="msg local06">我的消息6</p>
        <p class="msg local07">我的消息7</p>
        <p class="msg local08">我的消8</p>
        <p class="msg local09">我的消息9</p>
    </div>
     <!--/*<script src="https://res.wx.qq.com/mmbizwap/zh_CN/htmledition/js/vconsole/2.5.2/vconsole.min.js"></script> */-->
<script>
    var loadScript = function (list, callback) {
        var loaded = 0;
        var loadNext = function () {
            loadSingleScript(list[loaded], function () {
                loaded++;
                if (loaded >= list.length) {
                    callback();
                }
                else {
                    loadNext();
                }
            })
        };
        loadNext();
    };

    var loadSingleScript = function (src, callback) {
        var s = document.createElement('script');
        s.async = false;
        s.src = src;
        s.addEventListener('load', function () {
            s.parentNode.removeChild(s);
            s.removeEventListener('load', arguments.callee, false);
            callback();
        }, false);
        document.body.appendChild(s);
    };

    var xhr = new XMLHttpRequest();
    xhr.open('GET', './manifest.json?v=' + Math.random(), true);
    xhr.addEventListener("load", function () {
        var manifest = JSON.parse(xhr.response);
        var list = manifest.initial.concat(manifest.game);
        loadScript(list, function () {
            /**
             * {
             * "renderMode":, //Engine rendering mode, "canvas" or "webgl"
             * "audioType": 0 //Use the audio type, 0: default, 2: web audio, 3: audio
             * "antialias": //Whether the anti-aliasing is enabled in WebGL mode, true: on, false: off, defaults to false
             * "canvasScaleFactor": //canvas scale factor
             * }
             **/
            egret.runEgret({ renderMode: "canvas", audioType: 0 });

        });
    });
    xhr.send(null);
    
</script>   
</body>
</html>